<?php
namespace Library\Dal;

class Query
{
	private $_commandText;
	private $_parameters = array();
	
	public function __construct($commandText = null)
	{
		$this->_commandText = $commandText;
	}
	
	public function createParameter( $key, $value, $type = DataType::String )
    {
        $this->_parameters[] = array( $key, $value, $type );
    }
	
	public function getParameters()
	{
		return $this->_parameters;
	}
	
	public function __toString()
	{
		return (string)$this->_commandText;
	}
}